package org.qydjk.common.util.es;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 构建为elasticsearch
 * 方便使用的jsonBuilder对象
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ESearchColumn {

    /**
     * 字段类型
     * @return
     */
    ESearchColumnType type() default ESearchColumnType.BASIC;
}
